﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace blacksoft.Models
{
    public class LoginModel
    {
        [Required]
        [StringLength(20)]
        [Display(Name = "Usuario")]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos")]
        public string Nombre { get; set; }
        [Required]
        [StringLength(15)]
        [DataType(DataType.Password)]
        [RegularExpression(@"^[a-zA-Z0-9]*$", ErrorMessage = "Solo se permiten caracteres alfanuméricos")]
        [Display(Name = "Contraseña")]
        public string Contraseña { get; set; }

    }
}